package com.polaris.live.adapter

import com.bumptech.glide.Glide
import com.polaris.live.common.adapter.BaseBindingAdapter
import com.polaris.live.common.adapter.VBViewHolder
import com.polaris.live.databinding.AdapterWeekStarBinding
import com.polaris.live.im.sfs.bean.pusher.PicBase
import com.polaris.live.utils.image.ImageUtils

/**
 * WeekStarAdapter
 *
 * @author Created by 天晴 on 2024/5/7/004 21:00
 */
class WeekStarAdapter : BaseBindingAdapter<AdapterWeekStarBinding, PicBase>() {
    override fun convert(holder: VBViewHolder<AdapterWeekStarBinding>, item: PicBase) {
        Glide.with(context)
            .load(ImageUtils.imgPath(item.pic))
            .into(holder.vb.iconImg)
        holder.vb.text.text = item.explain
    }
}